package com.one.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Create on 2022-01-16
 * <p>
 * Author: LiangWei
 * <p>
 * Description:
 **/
@ConfigurationProperties(prefix = "orderFlashSale")
@Component
@Data
public class OrderFlashSaleConfig {
    /**
     * 商品库存统一前缀
     */
    private String prodStockPrefix;
    /**
     * 将用户和商品锁定统一前缀
     */
    private String lockUserProdPrefix;
    /**
     * 将用户和商品锁定的时间（抢购时间）
     */
    private Integer lockUserProdTime;
    /**
     * 商品库存锁定统一前缀
     */
    private String lockProdStockPrefix;
    /**
     * 商品库存锁定时效
     */
    private Integer lockProdStockTime;
}
